package com.zmn.oms.dubbo.interfaces.channel;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dio.channel.ChannelApiOrderWorkAddDIO;
import com.zmn.oms.dubbo.dto.zmn.order.NewOrderDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

/**
 * 类描述：
 *
 * @author wangxiaokun
 * @since 2021/04/07 18:35
 */
@Api(
        value = "渠道接口",
        tags = {"渠道接口"}
)
public interface ChannelApiOrderWorkRemoteService {

    @ApiOperation(
            value = "渠道接口录单",
            response = ResponseDTO.class,
            tags = {"渠道接口"}
    )
    ResponseDTO<NewOrderDRO> addOrder(@NotNull(message = "入参不能为空") @ApiParam(value = "入参", required = true)
                                              ChannelApiOrderWorkAddDIO channelApiOrderWorkAddDIO);
}
